<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
  <head>
    
    <title>CK宠物网  个人空间</title>
    <jsp:include page="top_utils.jsp"></jsp:include>
    <script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/myplace.css"/>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/index.css"/>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/head-footer.css"/>
  </head>
  
  <body>
 	<!-- 头部-->
	<div class="headnav">
		<div class="topBar">
			<div class="topBarL">
				<jsp:include page="logo.jsp"></jsp:include>
				<div class="nav">
					<ul>
						<li>
							<a href="${pageContext.request.contextPath }/">首页</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath }/news/">新闻</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath }/adopt/">领养</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath }/knowledge/">知识</a>
						</li>
						<li>
							<a href="${pageContext.request.contextPath }/shopping/">商城</a>
						</li>
					</ul>
				</div>
			</div>

			<jsp:include page="topBarR.jsp"></jsp:include>
		</div>
	</div>
 	
	<div id="main" style="background:url('/dogstore/images/${user.backimg}')  no-repeat center top;">
	  <jsp:include page="my_top.jsp"></jsp:include>
	  
	  <div class="layout-body">
	    <div class="w960  clf">   
	      <div class="m_main">
	        <div class="inner centers_mr"> 
	        	<c:if test="${user.power == 0 }">
	        		<h1 class="welcom_tm" ">欢迎您，管理员     <font>${user.username }</font>！您上次登录时间为 ${user.lastlogintime}</h1>
	        	</c:if>
	        	<c:if test="${user.power == 1 }">
	        		<c:if test="${user.issale_power == 0 }">
	        			<h1 class="welcom_tm" >欢迎您，普通会员     <font>${user.username }</font>！您上次登录时间为 ${user.lastlogintime}</h1>
	        		</c:if>
	        		<c:if test="${user.issale_power == 1 }">
	        			<h1 class="welcom_tm">欢迎您，VIP会员     <font>${user.username }</font>！您上次登录时间为 ${user.lastlogintime}</h1>
	        		</c:if>
	        	</c:if>
	        	
	     		<div class="public_m1">
		        	<div class="public_m2">个人资料管理</div>
		            <!--照片和内容-->	
		            <div class="zp_nrm">
		            	
		            	<!--left-->
		                <div class="zp_nrm_l">
		                	<img src="${pageContext.request.contextPath}/images/${user.logoimg}">
		                    <a href="javascript:">更换头像</a>
		                </div>
		                <!--right-->
		                <div class="zp_nrm_r">
		                	<a class="ckxx" href="${pageContext.request.contextPath}/jsps/client/my_editUser.jsp">编辑</a>
		                	<p><em>用户名：</em><i>${user.username }</i></p>
		                    <p>
		                    	<em>邮&nbsp;箱：</em>
		                    	<c:if test="${user.email != null && user.email != ''}">
		                    		<i>${user.email }</i>
		                    	</c:if>
		                    	<c:if test="${user.email == null || user.email == ''}">
		                    		<i>未绑定</i>
		                    		<c:if test="${user.power == 1 }">
		                    			<a href="javascript:">立即设置</a>
		                    		</c:if>
		                    	</c:if>
		                    </p>
		                    <p>
		                    	<em>手机号：</em>
		                    	<c:if test="${user.phone != null && user.phone != ''}">
		                    		<i>${user.phone }</i>
		                    	</c:if>
		                    	<c:if test="${user.phone == null || user.phone == ''}">
		                    		<i>未绑定</i>
		                    		<c:if test="${user.power == 1 }">
		                    			<a href="${pageContext.request.contextPath}/user/myrzsale">卖家资格需绑定手机号</a>
		                    		</c:if>
		                    	</c:if>
		                    </p>
		                    <p><em>性&nbsp;别：</em><i>${user.sex }</i></p>
		                    <!-- <a href="javascript:" class="public_m3">保存修改</a> -->
		                </div>
		            </div>
        		</div>
	        </div>
	      </div>
	    </div>
	  </div>
	</div>
	
	<jsp:include page="footer.jsp"></jsp:include>
  </body>
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/myspace.css">
  <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/js/head.js"></script>
</html>
